/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package work.base.data.queue;

import java.util.LinkedList;
import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author Sakura Shen
 * @description
 * @date 2021/7/22
 */
public class TestQueue {

    public static void main(String[] args){

        ArrayBlockingQueue queue = new ArrayBlockingQueue(3);
        queue.add("A");
        queue.add("B");
        queue.add("C");
        queue.offer("SS");

        queue.poll();

        System.out.println(queue.peek());
        System.out.println(queue.peek());
        queue.clear();
        System.out.println(queue.peek());
        queue.element();

        LinkedList<String> linkedList = new LinkedList<>();

    }
}
